<div class="users form">
<?php echo $this->Form->create('User');?>
	<fieldset>
 		<legend><?php __('My Account'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('email');
		echo $this->Form->input('first_name');
		echo $this->Form->input('last_name');
		echo $this->Form->input('old_password', array('type'=>'password'));
		echo $this->Form->input('password');
		echo $this->Form->input('password_confirm', array('type'=>'password'));
		if (Configure::read('System.useTimezone')) {
			echo $this->Form->input('timezone_id', array('options'=>$timezones, 'empty'=>__('select timezone', true)));
		}
		
		if (Configure::read('User.useDisableAccount')) {
			echo $this->Form->input('disable', array('type'=>'checkbox', 'hiddenField' => false, 'label' => __('Disable my account', true)));
		}
	?>
	</fieldset>
<?php echo $this->Form->end(__('Update', true));?>
</div>

<script>
$(function() {

    $('#UserDisable').click(function(){
    	if ($('#UserDisable').is(':checked')) {
			if (confirm("<?=__('Are you sure you want to disabl your account?', true);?>")) {
				return true;
			}
			return false;
		}
		return true;
    });

});
</script>